package com.mdd.front.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import com.mdd.common.validator.annotation.IDMust;

/**
 * ai聊天记录参数
 * @author XueYong
 */
@Data
@ApiModel("ai聊天记录更新参数")
public class AiQuestionRecordUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "主键")
    private String id;

    @NotNull(message = "userId参数缺失")
    @ApiModelProperty(value = "用户id")
    private Long userId;

    @NotNull(message = "type参数缺失")
    @ApiModelProperty(value = "类型0用户提问1ai回答")
    private Long type;

    @NotNull(message = "content参数缺失")
    @ApiModelProperty(value = "回答内容")
    private String content;

}
